package org.accp.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Date;
import java.sql.Timestamp;
import java.util.List;

public class Hisuser {
    private Integer userid;
    private String username;
    private String loginname;
    private String name;
    private String sex;
    private String password;
    @DateTimeFormat(pattern = "yyyy-mm-yy")
    private String birthdate;
    private String createtime;
    private String id;
    private String Mage;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    private List<Hisrole> hisroles;//用户拥有的角色列表
    private List<Department> departments;//用户的科目：

    public List<Hisrole> getHisroles() {
        return hisroles;
    }

    public void setHisroles(List<Hisrole> hisroles) {
        this.hisroles = hisroles;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getLoginname() {
        return loginname;
    }

    public void setLoginname(String loginname) {
        this.loginname = loginname;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getBirthdate() {
        return birthdate;
    }

    public void setBirthdate(String birthdate) {
        this.birthdate = birthdate;
    }

    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public List<Department> getDepartments() {
        return departments;
    }

    public void setDepartments(List<Department> departments) {
        this.departments = departments;
    }

    public String getMage() {
        return Mage;
    }

    public void setMage(String mage) {
        Mage = mage;
    }
}
